package com.tyl.service.impl;

import com.tyl.mapper.UserMapper;
import com.tyl.pojo.User;
import com.tyl.service.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUserList() {
        return userMapper.getUserList();
    }

    @Override
    public User getByUsername(String username) {
        return userMapper.getByUsername(username);
    }
}
